#include<time.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main(int argc ,char **argv)
{

  struct tm time1;
  memset(&time1,0, sizeof(struct tm));
  time_t timestamp1;
  strptime("22/Jul/2013:18:00:00 -0700","%d/%b/%Y:%H:%M:%S %z", &time1);
  
  time1.tm_isdst = 0;
  timestamp1 = mktime(&time1);
  printf("%d\n",timestamp1);
  return 0;
}


 
